package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class VoucherModel implements Parcelable {




    @SerializedName("usage_start_time")
    private String usageStartTime;


    @SerializedName("usage_end_time")
    private String usageEndTime;


    @SerializedName("voucher_id")
    private String voucherId;

    private String id;



    @SerializedName("voucher_name")
    private String voucherName;

    @SerializedName("game_name")
    private String gameName;
    @SerializedName("content")
    private String content;
    @SerializedName("threshold")
    private int threshold;

    @SerializedName("status")
    private int status;

    @SerializedName("face_value")
    private float faceValue;
    @SerializedName("mi_charge")
    private float miCharge;

    public String getUsageStartTime() {
        return usageStartTime;
    }

    public void setUsageStartTime(String usageStartTime) {
        this.usageStartTime = usageStartTime;
    }

    public String getUsageEndTime() {
        return usageEndTime;
    }

    public void setUsageEndTime(String usageEndTime) {
        this.usageEndTime = usageEndTime;
    }

    public String getVoucherId() {
        return voucherId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setVoucherId(String voucherId) {
        this.voucherId = voucherId;
    }

    public String getVoucherName() {
        return voucherName;
    }

    public void setVoucherName(String voucherName) {
        this.voucherName = voucherName;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getThreshold() {
        return threshold;
    }

    public void setThreshold(int threshold) {
        this.threshold = threshold;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public float getFaceValue() {
        return faceValue;
    }

    public void setFaceValue(float faceValue) {
        this.faceValue = faceValue;
    }

    public float getMiCharge() {
        return miCharge;
    }

    public void setMiCharge(float miCharge) {
        this.miCharge = miCharge;
    }

    public VoucherModel() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(this.usageStartTime);
        dest.writeString(this.usageEndTime);
        dest.writeString(this.voucherId);
        dest.writeString(this.voucherName);
        dest.writeString(this.gameName);
        dest.writeString(this.content);
        dest.writeInt(this.threshold);
        dest.writeInt(this.status);
        dest.writeFloat(this.faceValue);
        dest.writeFloat(this.miCharge);
        dest.writeString(this.id);

    }

    protected VoucherModel(Parcel in) {
        this.usageStartTime = in.readString();
        this.usageEndTime = in.readString();
        this.voucherId = in.readString();
        this.voucherName = in.readString();
        this.gameName = in.readString();
        this.content = in.readString();
        this.threshold = in.readInt();
        this.status = in.readInt();
        this.faceValue = in.readFloat();
        this.miCharge = in.readFloat();
        this.id = in.readString();
    }

    public static final Creator<VoucherModel> CREATOR = new Creator<VoucherModel>() {
        @Override
        public VoucherModel createFromParcel(Parcel source) {
            return new VoucherModel(source);
        }

        @Override
        public VoucherModel[] newArray(int size) {
            return new VoucherModel[size];
        }
    };
}
